<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>transform实例</title>
    <style>
        div {
            width: 100px;
            height: 50px;
            background-color: chocolate;
            border: 1px solid black;
        }

        div:hover {
            -webkit-transition: all 2s ease 1s;
            -moz-transition: all 2s    ease 1s;
            -ms-transition: all 2s ease 1s;
            -o-transition: all 2s  ease 1s;
            transition: all 2s ease 1s;

            -webkit-transform: translate(50px, 100px);
            -moz-transform: translate(50px, 100px);
            -ms-transform: translate(50px, 100px);
            -o-transform: translate(50px, 100px);
            transform: translate(50px, 100px);
        }



    </style>
</head>
<body>
<div>
    Transform实例,平移

</div>
</body>
</html>